<?php
namespace Api\Controller;

use Think\Controller;

class ExpressController extends Controller {
	
	public function getMessageAction() {
		$orderNo = I("orderNo", "");
		$expressName = I("expressName", "", "urldecode");
		$express = \Utuo\Express::getInstance(array('fake'=>true));
		$result = $express->getorder($expressName, $orderNo);
		header("Content-Type:text/json;charset=utf-8");
		echo json_encode($result);
		exit;
	}
}
/**
 * array(8) {
  ["nu"]=>
  string(12) "111309582915"
  ["message"]=>
  string(2) "ok"
  ["ischeck"]=>
  string(1) "1"
  ["com"]=>
  string(12) "quanyikuaidi"
  ["condition"]=>
  string(3) "F00"
  ["status"]=>
  string(3) "200"
  ["data"]=>
  array(11) {
    [0]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-05 16:13:00"
      ["context"]=>
      string(16) "签收人:仓库"
      ["ftime"]=>
      string(19) "2013-06-05 16:13:00"
    }
    [1]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-05 08:08:00"
      ["context"]=>
      string(15) "派送安排中"
      ["ftime"]=>
      string(19) "2013-06-05 08:08:00"
    }
    [2]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-04 16:01:00"
      ["context"]=>
      string(116) "东莞(万江)派件现场扫描 异常原因：快件到达时间过晚，需加工作日派送 操作员：DNG0520"
      ["ftime"]=>
      string(19) "2013-06-04 16:01:00"
    }
    [3]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-04 16:01:00"
      ["context"]=>
      string(56) "未签收,快件到达时间过晚,需加工作日派送"
      ["ftime"]=>
      string(19) "2013-06-04 16:01:00"
    }
    [4]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-04 15:58:00"
      ["context"]=>
      string(15) "派送安排中"
      ["ftime"]=>
      string(19) "2013-06-04 15:58:00"
    }
    [5]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-04 15:58:00"
      ["context"]=>
      string(15) "派送安排中"
      ["ftime"]=>
      string(19) "2013-06-04 15:58:00"
    }
    [6]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-04 15:05:00"
      ["context"]=>
      string(26) "货物到达东莞(万江)"
      ["ftime"]=>
      string(19) "2013-06-04 15:05:00"
    }
    [7]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-04 13:37:00"
      ["context"]=>
      string(47) "虎门转运站转给下一站：东莞(万江)"
      ["ftime"]=>
      string(19) "2013-06-04 13:37:00"
    }
    [8]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-04 13:21:00"
      ["context"]=>
      string(27) "货物到达虎门转运站"
      ["ftime"]=>
      string(19) "2013-06-04 13:21:00"
    }
    [9]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-04 11:38:00"
      ["context"]=>
      string(50) "深圳（布吉）取件成功 操作员：SZ95555"
      ["ftime"]=>
      string(19) "2013-06-04 11:38:00"
    }
    [10]=>
    array(3) {
      ["time"]=>
      string(19) "2013-06-04 10:00:00"
      ["context"]=>
      string(18) "深圳托运办理"
      ["ftime"]=>
      string(19) "2013-06-04 10:00:00"
    }
  }
  ["state"]=>
  string(1) "3"
}
 */